﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace GameJam
{
    public class UIMgr : MonoBehaviour
    {
        [System.NonSerialized]
        public GameUI gameUI;
        [System.NonSerialized]
        public GameOverUI gameOverUI;

        [System.NonSerialized]
        public Transform menuUI;
        private static UIMgr m_instance;
        public static UIMgr Instance
        {
            get
            {
                if(m_instance == null)
                {
                    m_instance = new UIMgr();
                }
                return m_instance;
            }
        }

        public UIMgr()
        {
            m_instance = this;
        }

        // Use this for initialization
        void Start()
        {
            gameUI = transform.Find("GameUI").GetComponent<GameUI>();
            gameOverUI = transform.Find("GameOverUI").GetComponent<GameOverUI>();
            menuUI = transform.Find("MenuUI");
        }


    }
}